package de.ifi.lmu.snitzelhunt.util.basics;


/**
 * Class for the Route Object, the core object of Snitzelhunt
 * 
 * @author jaschkowitz
 * 
 */
public class  RouteInfo {
	// server Database ID
	private long global_routeId;
	private String creator;
	private String name;

	/**
	 * simple constructor for setting all fields
	 * 
	 * @param global_routeId
	 * @param creator
	 * @param name
	 */
	
	
	
	public  RouteInfo(long global_routeId, String creator, String name) {
		super();
		this.creator = creator;
		this.name = name;
		this.global_routeId = global_routeId;
	}

	
	
	public long getGlobal_routeId() {
		return global_routeId;
	}



	public void setGlobal_routeId(long global_routeId) {
		this.global_routeId = global_routeId;
	}



	public String getCreator() {
		return creator;
	}



	public void setCreator(String creator) {
		this.creator = creator;
	}



	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = name;
	}



	/**
	 * no args constructor for gson
	 */
	public RouteInfo() {
	}

	@Override
	public String toString() {
		StringBuilder sbuild = new StringBuilder();
		sbuild.append(getClass().getName() + " [global_routeId="
				+ global_routeId + " ,creator=" + creator + " ,name=" + name
				+ "]");
		return sbuild.toString();
	}
}
